package com.dhcc.bpm.common.utils;

import lombok.Data;

/**
 * @ClassName ResHead
 * @Description TODO
 * @Author sjm
 * @Date 2020/3/10 0010 20:26
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
@Data
public class ResHead {
    private String errorCode;
    private String errorMessage;

    public static ResHead success() {
        ResHead Head = new ResHead();
        Head.setErrorCode("0");
        return Head;
    }

    public static ResHead error(String msg) {
        ResHead head = new ResHead();
        head.setErrorCode("1");
        head.setErrorMessage(msg);
        return head;
    }
}
